package com.learner.pojo.user;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
* @author ice2020x
* @Date: 2023/2/3
* @Description: 验证消息
**/
@Data
@NoArgsConstructor
@Document(collection = "validateMessages")
public class ValidateMessage {
    @Id
    private String id;
    /**
     * 房间id
     */
    private String roomId;
    /**
     * 发送者id
     */
    private String senderId;
    /**
     * 发送用户名
     */
    private String senderName;
    /**
     * 发送者昵称
     */
    private String senderNickname;
    /**
     * 发送者头像
     */
    private String senderAvatar;

    /**
     * 接收者ID
     */
    private String receiverId;
    /**
     * 消息发送时间
     */
    private String time;
    /**
     * 附加消息
     */
    private String additionMessage;
    /**
     *  0/1/2，未处理/同意/不同意
     */
    private Integer status;
    /**
     *  0/1, 好友/群聊
     */
    private Integer validateType;
    /**
     *  群id
     */
    private String groupId;

    /**
     * 创建时间
     */
    @CreatedDate
    private Date createTime;
    /**
     * 修改时间
     */
    @LastModifiedDate
    private Date updateTime;
}
